/// Run Hugo data build

*** Set $root and preliminaries
* Please change the global variable "hugo_reproot_rfs" to the filepath where you saved the replication package
return clear
global hugo_reproot_rfs "${hugo_reproot_rfs}"
do "${hugo_reproot_rfs}/code/set_environment.do"
cd "${root}"

* Create data subfolders if they do not exist
cap mkdir "data/cleaned"
cap mkdir "data/int"
cap mkdir "data/int/clarity"
cap mkdir "data/int/manualhugoaction"
cap mkdir "data/cleaned/hugo"
cap mkdir "data/cleaned/stripe"

********************************************************************************
*** Build

***important and clean initial datasets from hugo
	do "code/build/hugo/Clean Mturk data.do"
	do "code/build/hugo/hugo data build.do"
	
***create insurance action datasets
	do "code/build/insurance actions/Create action level datasets.do"
	do "code/build/insurance actions/Create collapsed action hourly.do"
	do "code/build/insurance actions/Create hourly any insurance.do"
	do "code/build/insurance actions/Collapsed action any insurance.do"
	do "code/build/insurance actions/Merge stripe payments.do"
	
***merge credit data 
	do "code/build/credit data/Merge experian data.do"
	do "code/build/credit data/Merge clarity data.do"

	
